<% content_for :css do %>
  <%= stylesheet_link_tag 'tools_zhui_tian_ya_hot_posts_show' %>
<% end %>
<% content_for :javascript do %>
<script type="text/javascript" charset="utf-8">
  function go_to(page_num)
  {
    $('page').value = page_num;
    $('search_form').submit();
  }
  
  function hl_lz()
  {
    $$('div.lz').each(function(lz_post) {
      lz_post.className = 'hot_post lz hl';      
    });
    $('hl_lz').hide();
    $('ll_lz').show();
  }
  
  function ll_lz()
  {
    $$('div.lz').each(function(lz_post) {
      lz_post.className = 'hot_post lz';      
    });
    $('ll_lz').hide();
    $('hl_lz').show();
  }
</script>
<% end %>
<div id="hot_post">
  <div id="head">
    <div class="my_tools corner">
      <div class='logo'></div>
      <div class="left">   
        <div class='tools'>          
          <%= link_to '只看楼主', tools_zhui_tian_ya_hot_post_url(@hot_post, :scope => 'lz')  %>
          <%= link_to_function '高亮楼主',
                "hl_lz()",
                :id => :hl_lz 
          %>
          <%= link_to_function '低亮楼主',
                'll_lz()',
                :id => :ll_lz ,
                :style => 'display:none'
          %>
          <%= link_to '原帖',@hot_post.first_page_url, :target => :_blank  %>
          <%= link_to '我追', new_tools_zhui_tian_ya_hot_post_url , :target => :_blank, :title => '我来带头追个贴' %>
          <%= link_to '返回追天涯<<', tools_zhui_tian_ya_hot_posts_url , :class => :go_back %>
        </div>
      </div>
    </div>
    <div id="title">
      <b>『<%= @hot_post.hot_post_type.name %>』</b><%= @hot_post.title %>
    </div>
  </div>
  <div id='hp_body'>      
    <%= render :file => 'tools/zhui_tian_ya_hot_posts/preview.js' %>   
  </div>
</div>
<% form_tag tools_zhui_tian_ya_hot_post_url(@hot_post), :method => :get, :id => 'search_form'  do %>
  <%= hidden_field_tag :page, params[:page] %>  
  <%= hidden_field_tag :read_sub_hot_post_id %> 
<% end %>